﻿using System;
using Kam.Lagan.Examples.Atm.Contract.Model;

namespace Kam.Lagan.Examples.Atm.Model
{
    public abstract class Transaction : ITransaction
    {
        protected Transaction(double amount)
        {
            Amount = amount;
            Date = DateTime.Now;
            Id = Guid.NewGuid();
        }

        public Guid Id { get; private set; }

        public double Amount { get; private set; }

        public DateTime Date { get; private set; }
    }
}